package cn.signalpha.modules.com.excel;

import cn.signalpha.modules.com.excel.converter.UserLevelConverter;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * UserExcel
 *
 * @author signalpha
 */
@Data
@ColumnWidth(20)
@HeadRowHeight(20)
@ContentRowHeight(18)
public class UserExcel implements Serializable {
	private static final long serialVersionUID = 1L;

	@ExcelProperty(value = "ID")
	private Long id;

	@ExcelProperty(value = "会员昵称")
	private String nickName;

	@ExcelProperty(value = "邀请码")
	private String account;

	@ExcelProperty(value = "手机号码")
	private String mobile;

	@ExcelProperty(value = "会员等级", converter = UserLevelConverter.class)
	private Integer level;

	@ExcelProperty(value = "余额")
	private Double money;

	@ExcelProperty(value = "积分")
	private Double integral;

	@ExcelProperty(value = "注册时间")
	private Date createTime;

}
